<template>
  <div>
    <div>
      <el-button @click="exit()">返回</el-button>
      <el-button @click="changeTheme(1)">主题1</el-button>
      <el-button @click="changeTheme(2)">主题2</el-button>
    </div>
  </div>
</template>
<script>

import router from "@/router";

export default {
  methods:{
    exit(){
      router.push("/index");
    },
    changeTheme(type){
      $('#app').addClass(`theme_${type}`);
      document.getElementById("app").setAttribute("class", `theme_${type}`);
    }
  }
}


</script>
<style scoped>

</style>